from Page.Page import Page
from selenium.webdriver.common.by import By
import time



class Page1(Page):

    # 点击报名
    click_bm_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/div[1]/div/div[1]/div[3]/div/div[1]/div/table/tbody/tr[2]/td[8]/div/button/span')
    def click_bm(self):
        self.click(self.click_bm_loc)

    # 业务逻辑
    def activity_luoji_02(self):
        self.activity_luoji_01()
        time.sleep(3)
        self.click_bm()
        # 弹窗确定
        time.sleep(3)
        self.accept_alert()

    # 业务逻辑
    def activity_luoji_03(self):
        self.activity_luoji_01()
        time.sleep(3)
        self.click_bm()
        # 弹窗取消
        time.sleep(3)
        self.dismiss_alert()











